package tgc.edu.exam.custom;

public class LayUiResult {
	private Boolean success;
	private String msg;
	public Boolean getSuccess() {
		return success;
	}
	public void setSuccess(Boolean success) {
		this.success = success;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public LayUiResult() {
		super();
	}
	public LayUiResult(Boolean success, String msg) {
		super();
		this.success = success;
		this.msg = msg;
	}

	public static LayUiResult getResult() {
		return new LayUiResult(true, "OK");
	}
	
	public static LayUiResult getResult(String msg) {
		return new LayUiResult(true, msg);
	}
	
	public static LayUiResult getErrorResult(String msg) {
		return new LayUiResult(false, msg);
	}
}
